<?php
$lightbox_config_file = dirname(__FILE__)."/config";


if($p_data) {
    file_put_contents($lightbox_config_file, serialize(array("aof" => !empty($p_data['activate_on_frontend']), "aob" => !empty($p_data['activate_on_backend']))));
}

if(file_exists($lightbox_config_file)) {
    $lightbox_config = unserialize(file_get_contents($lightbox_config_file));
    $smarty->assign("lightbox_config", $lightbox_config);
}

return $smarty->fetch('config.tpl');

?>